Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the following languages:L1 = {ww | w... Start Learning for Free
Consider the following languages:
L1 = {ww | w ∈ {a, b}*}
L2 = {anbncm | m, n ≥ 0}
L3 = {ambncn | m, n ≥ 0}
Which of the following statements is/are FALSE?
  • a)
    L1 is not context-free but L2 and L, are deterministic context-free. 
  • b)
    Neither L1 nor L, is context-free.
  • c)
    L2, L3 and  L2 ∩ L3 all are context-free
  • d)
    Neither L1 nor its complement is context-free.
Correct answer is option 'B,C'. Can you explain this answer?
Most Upvoted Answer
Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anb...
The language L1 is the set of all strings of the form ww, where w is any string of characters. In other words, L1 is the set of all strings that can be obtained by concatenating a string with itself.

For example, if w = "ab", then ww = "abab" and this string would be in L1. Similarly, if w = "xyz", then ww = "xyzxyz" and this string would also be in L1.

However, if w = "a", then ww = "aa" and this string would also be in L1. Therefore, the language L1 contains strings of odd length as well.

In summary, L1 is the language of all strings that can be obtained by concatenating a string with itself, regardless of the length of the string.
Free Test
Community Answer
Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anb...
Option 1: L1 is not context-free but L2 and L3 are deterministic context-free. 
True, L1 is not context-free and L2 and L3 are clearly DCFLs since they have only one comparison and DPDA can accept both.
Option 2: Neither L1 nor L2 is context-free.
False, L2 is DCFL and every DCFL is a CFL.
L2 - Context-free.
L3 - Context-free.
L2 ∩ L3 = {anbncn or ambmcm , m, n > = 0}
This language is context sensitive language.
Option 3: L2, L3 and  L2 ∩ L3 all are context-free.
False, 
L2 - Context-free.
L3 - Context-free.
L2 ∩ L3 = {anbncn, n > = 0} We can not compare the anbncn  with one single stack. Hence it is not context-free.
Option 4: Neither L1 nor its complement is context-free.
False, L1 - Not context-free.
L1' Complement of L1 is accepted by a context-free grammar is CFL.
Hence the correct answer is option 2, option 3 and option 4.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer?
Question Description
Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer?.
Solutions for Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer?, a detailed solution for Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? has been provided alongside types of Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the following languages:L1 = {ww | w ∈ {a, b}*}L2 = {anbncm | m, n ≥ 0}L3 = {ambncn | m, n ≥ 0}Which of the following statements is/are FALSE?a)L1 is not context-free but L2 and L, are deterministic context-free.b)Neither L1 nor L, is context-free.c)L2, L3 and L2 ∩ L3all are context-freed)Neither L1 nor its complement is context-free.Correct answer is option 'B,C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev